package edu.npu.cv.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import edu.npu.cv.dao.CategoryDAO;
import edu.npu.cv.entity.CategoryDO;
import edu.npu.cv.service.CategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName CategoryServiceImpl
 * @Description TODO
 * @Author Quentin_zyj
 * @Date 2021/11/30 20:04
 */
@Service
public class CategoryServiceImpl implements CategoryService {

    @Resource
    private CategoryDAO categoryDAO;

    @Override
    public List<CategoryDO> getAllCategories() {
        return categoryDAO.selectList(new QueryWrapper<CategoryDO>());
    }
}
